<?php
//// ^2_3^事件定义文件
return [
    //// 绑定事件标识
    'bind'      => [
        'DemoEvent' => 'app\event\DemoEvent'
    ],

    //// 监听事件
    'listen'    => [
        'AppInit'  => [],
        'HttpRun'  => [],
        'HttpEnd'  => [],
        'LogLevel' => [],
        'LogWrite' => [],

        //// 监听事件
        'DemoEvent' => ['app\listener\DemoEventListener'],
    ],

    //// 事件观察者
    'subscribe' => [
        'app\subscribe\DemoSubscribe',
    ],
];
